<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>编辑任务</title>
    <link rel="stylesheet" href="{{asset('css/font-awesome.min.css')}}">
    <link rel="stylesheet" href="{{asset('css/bootstrap.min.css')}}">
</head>
<body>
<nav class="navbar navbar-default">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">Todolist</a>
        </div>
        <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav">
                <li><a href="{{route('todolist.index')}}">任务列表</a></li>
            </ul>
        </div>
    </div>
</nav>

<div class="container-fluid">
    <form action="{{route('todolist.store')}}" method="post">
        {{csrf_field()}}
        <input type="hidden" name="id" value="{{ $todolist->id }}">
        <div class="panel panel-success">
            <div class="panel-heading">编辑任务</div>
            <div class="panel-body">
                <div class="row">
                    <div class="col-md-4">
                        <div class="form-group">
                            <label for="desc">任务描述：</label>
                            <input type="text" id="desc" name="desc" class="form-control" value="{{ $todolist->desc }}">
                        </div>
                        <div class="form-group">
                            <label for="url">原型链接：</label>
                            <input type="text" id="url" name="url" class="form-control" value="{{ $todolist->url }}">
                        </div>
                        <div class="form-group">
                            <button type="submit" class="btn btn-primary">提交</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
</body>
</html>